package org.sgx.gwtsjcl.embedded;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.ScriptInjector;
import com.google.gwt.core.shared.GWT;

public class SJCLEmbedded implements EntryPoint {

	@Override
	public void onModuleLoad() {
		loadScript();
//		System.out.println("SJCLEmbeddedEntryPoint");
	}

	public static void loadScript() {
		SJCLEmbeddedResources res = GWT.create(SJCLEmbeddedResources.class);
		ScriptInjector.fromString(res.sjcl().getText())
			.setWindow(ScriptInjector.TOP_WINDOW)
			.inject(); 
	}

}
